package com.example.trackcircuitdiagnosis.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.example.trackcircuitdiagnosis.entity.DataAnalogEntity;
import com.example.trackcircuitdiagnosis.mapper.DataAnalogMapper;
import com.example.trackcircuitdiagnosis.mapper.MonitoringProjectMapper;
import com.example.trackcircuitdiagnosis.service.DataAnalogService;
import com.example.trackcircuitdiagnosis.vo.DeviceAnalogVO;
import com.example.trackcircuitdiagnosis.vo.DeviceVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 23639
* @description 针对表【data_analog(模拟量表)】的数据库操作Service实现
* @createDate 2023-12-05 15:10:53
*/
@Service
public class DataAnalogServiceImpl extends ServiceImpl<DataAnalogMapper, DataAnalogEntity>
    implements DataAnalogService {
    @Autowired
    private DataAnalogMapper dataAnalogMapper;

    @Override
    public List<DeviceAnalogVO> getAllMonitoringDevice() {
        System.out.println("==================");
        System.out.println(dataAnalogMapper.selectDataAnaLogVoTree());
        return dataAnalogMapper.selectDataAnaLogVoTree();

    }

}




